package com.lrkj.back.controller;

/**
 * Created by daiwe on 2017/7/27.
 */

import com.lrkj.back.entity.TbPackageMuban;
import com.lrkj.back.service.TbPackageMubanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 和手术智能系统对接
 */
@Controller
@RequestMapping("/packageTemplate")
public class PackageList {

    @Autowired
    private TbPackageMubanService tbPackageMubanService;


    @RequestMapping("/findPackageList")
    @ResponseBody
    public Map<String,Object> packageList(){
        Map<String,Object> map = new HashMap<>();
        List<TbPackageMuban> list = tbPackageMubanService.findAllPackageNoPageList(map);
        Map<String,Object> rtnMap = new HashMap<>();
        rtnMap.put("data",list);
        return rtnMap;
    }

}
